package com.hjm.project.qbMerWithdrawal.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.hjm.project.qbMerWithdrawal.mapper.QbMerWithdrawalMapper;
import com.hjm.project.qbMerWithdrawal.domain.QbMerWithdrawal;
import com.hjm.project.qbMerWithdrawal.service.IQbMerWithdrawalService;
import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 钱宝对账文件Service业务层处理
 * 
 * @author maker-platform
 * @date 2022-03-11
 */
@Service
public class QbMerWithdrawalServiceImpl implements IQbMerWithdrawalService {
    @Resource
    private QbMerWithdrawalMapper qbMerWithdrawalMapper;

    /**
     * 查询钱宝对账文件
     * 
     * @param msgType 钱宝对账文件ID
     * @return 钱宝对账文件
     */
    @Override
    public QbMerWithdrawal selectQbMerWithdrawalById(String msgType) {
        return qbMerWithdrawalMapper.selectQbMerWithdrawalById(msgType);
    }

    /**
     * 查询钱宝对账文件列表
     * 
     * @param qbMerWithdrawal 钱宝对账文件
     * @return 钱宝对账文件
     */
    @Override
    public List<QbMerWithdrawal> selectQbMerWithdrawalList(QbMerWithdrawal qbMerWithdrawal) {
        return qbMerWithdrawalMapper.selectQbMerWithdrawalList(qbMerWithdrawal);
    }

    /**
     * 查询钱宝对账文件列表
     *
     * @param qbMerWithdrawal 钱宝对账文件
     * @return 钱宝对账文件 一个结果
     */
    @Override
    public QbMerWithdrawal selectQbMerWithdrawalOne(QbMerWithdrawal qbMerWithdrawal) {
        return qbMerWithdrawalMapper.selectQbMerWithdrawalOne(qbMerWithdrawal);
    }

    /**
     * 新增钱宝对账文件
     * 
     * @param qbMerWithdrawal 钱宝对账文件
     * @return 结果
     */
    @Override
    public int insertQbMerWithdrawal(QbMerWithdrawal qbMerWithdrawal) {
        return qbMerWithdrawalMapper.insertQbMerWithdrawal(qbMerWithdrawal);
    }

    /**
     * 修改钱宝对账文件
     * 
     * @param qbMerWithdrawal 钱宝对账文件
     * @return 结果
     */
    @Override
    public int updateQbMerWithdrawal(QbMerWithdrawal qbMerWithdrawal) {
        return qbMerWithdrawalMapper.updateQbMerWithdrawal(qbMerWithdrawal);
    }

    /**
     * 删除钱宝对账文件对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteQbMerWithdrawalByIds(String ids) {
        return qbMerWithdrawalMapper.deleteQbMerWithdrawalByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除钱宝对账文件信息
     * 
     * @param msgType 钱宝对账文件ID
     * @return 结果
     */
    @Override
    public int deleteQbMerWithdrawalById(String msgType) {
        return qbMerWithdrawalMapper.deleteQbMerWithdrawalById(msgType);
    }
}
